<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="采购申请" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addApply()"
                        ng-disabled="!btnPermission.purchaseApplyAdd"
                        translate translate-attr-title="{{!btnPermission.purchaseApplyAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="synCRMApply()"
                        ng-disabled="!btnPermission.purchaseApplySynCRM"
                        translate translate-attr-title="{{!btnPermission.purchaseApplySynCRM?'无权限执行此操作':''}}">同步CRM</button>
                    <button class="btn btn-operate m-r-sm" ng-click="changeTab(5)"
                        ng-if="isWJ && btnPermission.purchaseApplyAdjustPrice"
                        translate>采购销售发货价格调整</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="refreshData()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <button type="button"  class="btn btn-default base-color" ng-click="importDate()" title="导入">
                            <i class="yb-icon ico-import-o"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseApplyExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" is-ajax="true">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search light-bg p-r-lg" translate translate-attr-placeholder="调度员"
                            ng-click="selectDispatch()" ng-model="condition.dispatcherName" readonly>
                        <i class="yb-icon ico-close-o search-bar-clear" ng-if="!!condition.dispatcherName"  ng-style="{'left':isEN?'160px':'170px'}"
                            ng-click="clearCondition()"></i>
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>CRM单号</span>：</label>
                        <input type="text" name="crmOrder" ng-model="condition.crmOrder"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户名称</span>：</label>
                        <input type="text" name="purchaseOrgName" ng-model="condition.purchaseOrgName"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户名称</span>：</label>
                        <textarea ng-model="condition.purchaseNames" class="form-control" translate translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div search-purchase-type first-level-model="condition.purchaseType"
                        second-level-model="condition.purchaseTypeChildId"></div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.billStatus"
                            ng-options="item.code as (item.name | translate) for item in billStateList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>同步CRM</span>：</label>
                        <select class="form-control" ng-model="condition.syncCrmFlag"
                            ng-options="item.value as (item.name | translate) for item in syncCrmFlagList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否直投</span>：</label>
                        <select class="form-control" ng-model="condition.isDirectCast">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>否</option>
                            <option value="1" translate>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>送货单创建状态</span>：</label>
                        <select class="form-control" ng-model="condition.sendStatus"
                            ng-options="item.value as (item.name | translate) for item in sendStatusList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>

                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购单号</span>：</label>
                        <textarea ng-model="condition.billNos" class="form-control" translate translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>

                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>提交时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>直投供货商</span>：</label>
                        <input type="text" ng-model="condition.soldOrgName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件编号</span>：</label>
                        <textarea ng-model="condition.materialNos" class="form-control" translate translate-attr-placeholder="多个零件编号空格分隔"></textarea>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>预计发货日期</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.estimatedShippingStartDate"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showEstiShipDateEnd=false;showEstiShipStart=!showEstiShipStart"
                            is-open="showEstiShipStart" close-text="关闭"
                            ng-change="checkDate(condition, 'estimatedShippingStartDate', 'estimatedShippingEndDate')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.estimatedShippingEndDate"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showEstiShipStart=false;showEstiShipDateEnd=!showEstiShipDateEnd"
                            is-open="showEstiShipDateEnd" close-text="关闭"
                            ng-change="checkDate(condition, 'estimatedShippingStartDate', 'estimatedShippingEndDate')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>国家和地区</span>：</label>
                        <input type="text" ng-model="condition.country" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购合同号</span>：</label>
                        <input type="text" ng-model="condition.purchaseContractNo" class="form-control">
                    </div>
                    <div class="form-group clearfix" ng-if="isDL || isZHL" >
                        <label class="control-label"><span translate>一天未审核</span>：</label>
                        <!-- <label class="control-label">
                            <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.notReviewedForOneDayCond" value="1"
                                   yb-radio-name="是">
                            <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.notReviewedForOneDayCond" value="0"
                                   yb-radio-name="否">
                        </label> -->
                        <toggle ng-model="condition.notReviewedForOneDayCond" yb-click="notReviewedForOneClick()"></toggle>
                    </div>
                    <div class="form-group clearfix" ng-if="isDL || isZHL" >
                        <label class="control-label"><span translate>一月未完结</span>：</label>
                        <!-- <label class="control-label"> -->
                            <!-- <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.oneMonthUnfinishedCond" value="1"
                                   yb-radio-name="是">
                            <input type="radio" class="m-r-sm pull-left" yb-radio
                                   ng-model="condition.oneMonthUnfinishedCond" value="0"
                                   yb-radio-name="否"> -->
                        <!-- </label> -->
                        <toggle ng-model="condition.oneMonthUnfinishedCond" yb-click="oneMonthUnfinishedClick()"></toggle>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="auditApply(item)"
                                                ng-disabled="(item.billStatus !== '1' && item.billStatus !== '4') || !btnPermission.purchaseApplyAudit || isZL || item.del"
                                                translate translate-attr-title="{{!btnPermission.purchaseApplyAudit?'无权限执行此操作':''}}">审核</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editApply(item)"
                                                ng-disabled="item.isSale !== 0 || !btnPermission.purchaseApplyEdit || isZL || item.del"
                                                translate translate-attr-title="{{!btnPermission.purchaseApplyEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delApply(item)"
                                                ng-disabled="item.isSale != '0' || !btnPermission.purchaseApplyDel || isZL || item.del"
                                                translate translate-attr-title="{{!btnPermission.purchaseApplyDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="importAttach(item)"
                                                ng-disabled="item.billStatus == '2' || !btnPermission.purchaseApplyImport || isZL || item.del"
                                                translate translate-attr-title="{{!btnPermission.purchaseApplyImport?'无权限执行此操作':''}}">上传附件</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate' && !itemCol.isEN) || (itemCol.type == 'synCrm' && item[itemCol.dataField] !== '同步失败')">{{item[itemCol.dataField]}}</span>
                                            <span ng-if="itemCol.isEN" translate>{{item[itemCol.dataField]}}</span>    
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type == 'synCrm' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="itemCol.type != 'attach' && !!itemCol.clickFn && itemCol.type !== 'synCrm'">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" translate
                                            ng-if="itemCol.type == 'attach' && !!item[itemCol.dataField]">
                                            点击下载
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.purchaseContractNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>接收单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.supplierOrgName||'当前登录企业'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>申请日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.deliveryDate|YbDate:"yyyy-MM-dd") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.purchaseOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" translate>
                        {{orderObj.purchaseTypeChildId ? orderObj.typeDesc + "-" + orderObj.purchaseTypeChildName :
                        orderObj.typeDesc}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.sendTypeChildId ? orderObj.shippingMethod + "-" + orderObj.sendTypeChildName :
                        orderObj.shippingMethod}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.receiverFax || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.receiverName"
                            maxlength="20">
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="orderObj.receiverTel" maxlength="11">
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverAddress" class="form-control"
                            ng-model="orderObj.receiverAddress" maxlength="50">
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>地址编码</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.addressCode || '-'}}">
                        {{orderObj.addressCode || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        <input type="text" class="form-control" ng-model="orderObj.remark" maxlength="100" ng-if="remarkEditable">
                        <span ng-if="!remarkEditable">
                            {{orderObj.remark || "-"}}
                        </span>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>订单金额</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.totalValue || 0}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否直投订单</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(orderObj.isDirectCast|TrueOrFalse) || '-'}}">
                        {{(orderObj.isDirectCast|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>直投达标金额</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.directLimit || '-'}}">
                        {{orderObj.directLimit || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>送达方</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.deliveryOrgName || '-'}}">
                        {{orderObj.deliveryOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.soldOrgName || '-'}}">
                        {{orderObj.soldOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否整改</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.isImprove|TrueOrFalse) || '-'}}">
                        {{(orderObj.isImprove|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否前移</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.forward|TrueOrFalse) || '-'}}">
                        {{(orderObj.forward|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>服务信息单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.crmServiceNo || '-'}}">
                        {{orderObj.crmServiceNo || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>币种</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.currency || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>订单类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        <select class="form-control" ng-model="orderObj.billTypeMode" >
                            <option value="" translate>请选择订单</option>
                            <option value="合同" translate>合同</option>
                            <option value="现金" translate>现金</option>
                            <option value="授信" translate>授信</option>
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.sapRfd || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="left:0;right: 240px;">
                <div class="pull-left">
                    <i></i><span translate>零件信息</span>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" style="right: 0; width: 240px;">
                <div class="pull-left">
                    <i></i><span translate>审核意见</span>
                </div>
            </div>
            <div class="panel-bar pos-a clearfix" ng-show="isZHJCH"
                ng-style="{'top':(orderObj.isDirectCast === 1)?'319px':'290px'}" style="left:0;right: 240px;">
                <div class="col-xs-12 operate-bar font-0">
                    <button ng-show="orderObj.materialsList.length > 0" class="btn btn-operate m-r-sm" translate ng-style="{'margin-top':isEN?'10px':'0px'}"
                        ng-click="batchChosePriceScheme()">批量选择价格方案</button>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top':(orderObj.isDirectCast === 1)?'354px':'320px'}"
                style="right: 240px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{auditMaterielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in auditMaterielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-if="!itemCol.hidden"
                                        ng-click="toSort4audit(auditMaterielTableConfig.tableCol, $index)">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editMaterielConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{auditMaterielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="(trIndex, item) in orderObj.materialsList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in auditMaterielTableConfig.tableCol track by $index"
                                        ng-if="!itemCol.hidden" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}} "
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.needInput && itemCol.inputType !== 'func' && itemCol.inputType!=='jiajia'">
                                            <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                            <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </div>
                                        <div ng-if="!!itemCol.needInput" class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                yb-number-input max="9999999.999" disable-decimal="false"
                                                decimal-places="2">
                                        </div>
                                            <div ng-if="!!itemCol.input && itemCol.inputType === 'func'">
                                                <div yb-form-clear class="td-edit" 
                                                     ng-if="showPricePlan == true"
                                                     ng-model="item[itemCol.dataField]"
                                                     select-obj="chosePriceScheme(item, trIndex)"
                                                     clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                                     title="{{item[itemCol.dataField]}}"></div>    
                                                <div ng-if="showPricePlan == false">价格方案</div>  
                                            </div>                                            
                                        <div ng-if="itemCol.input && itemCol.inputType === 'jiajia'"
                                            class="text-center">
                                            <div yb-check-box yb-checked="item['isChecked']"
                                                yb-click="handleJiajiaCheck(item, itemCol.dataField)"></div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0" translate>暂时没有数据
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top':(orderObj.isDirectCast === 1)?'354px':'320px'}"
                style="left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="500" name="auditMessage" class="form-control full"
                        ng-model="orderObj.auditMessage" ng-class="{'error': !orderObj.auditMessage && submitted}"
                        translate translate-attr-placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-click="auditPurchase('pass', orderObj.billId, orderObj.auditMessage, orderObj.isDirectCast)">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-click="auditPurchase('refuse', orderObj.billId, orderObj.auditMessage)">拒绝</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!orderObj.billNo">
                    <label class="col-xs-4 control-label max-w-100"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.billNo}}">
                        {{orderObj.billNo}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>采购合同号</span>：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseContractNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>接收单位</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.supplierOrgName||'当前登录企业'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>申请日期</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none" ng-if="!(isDL||isZHL)">
                        <input type="text" name="deliveryDate" class="form-control date-picker cursor-pointer"
                            ng-model="orderObj.deliveryDate"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" modal-size="small" close-text="关闭">

                        <!-- <div class="msg-block" ng-if="orderForm.deliveryDate.$dirty || (orderForm.deliveryDate.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.deliveryDate.$error.required && !orderForm.deliveryDate.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div> -->
                    </div>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" ng-if="isDL||isZHL">
                        {{ (orderObj.deliveryDate|YbDate:"yyyy-MM-dd") || '-' }}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type === 1">
                    <label class="col-xs-4 control-label max-w-100"><span translate>客户名称</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.purchaseOrgName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type === 0">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>客户名称</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="purchaseOrgName" class="form-control light-bg"
                            ng-model="orderObj.purchaseOrgName" ng-click="selectDealer()" required yb-focus readonly
                            translate translate-attr-placeholder="请选择">

                        <div class="msg-block"
                            ng-if="orderForm.purchaseOrgName.$dirty || (orderForm.purchaseOrgName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.purchaseOrgName.$error.required && !orderForm.purchaseOrgName.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg"
                            ng-model="orderObj.dispatcherName" ng-click="searchDispatch()" required yb-focus readonly
                            translate translate-attr-placeholder="请选择">

                        <div class="msg-block"
                            ng-if="orderForm.dispatcherName.$dirty || (orderForm.dispatcherName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.dispatcherName.$error.required && !orderForm.dispatcherName.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>采购方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-purchase-type first-level-model="orderObj.purchaseType"
                            second-level-model="orderObj.purchaseTypeChildId"
                            parent-type-name="orderObj.purchaseTypeName"
                            child-type-name="orderObj.purchaseTypeChildName"></div>
                        <div class="msg-block"
                            ng-if="orderForm.purchaseType.$dirty || (orderForm.purchaseType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.purchaseType.$error.required && !orderForm.purchaseType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                        <div class="msg-block" style="left: 100px;"
                            ng-if="orderForm.secondPurchaseType.$dirty || (orderForm.secondPurchaseType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.secondPurchaseType.$error.required && !orderForm.secondPurchaseType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="orderObj.shippingMethodId"
                            second-level-model="orderObj.sendTypeChildId" parent-type-name="orderObj.shippingMethod"
                            child-type-name="orderObj.sendTypeChildName"></div>
                        <div class="msg-block"
                            ng-if="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>收货人</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.receiverName"
                            required yb-focus maxlength="11">

                        <div class="msg-block"
                            ng-show="orderForm.receiverName.$dirty || (orderForm.receiverName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverName.$error.required && !orderForm.receiverName.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-3 p-l-sm p-r-none control-btn">
                        <button class="btn btn-default form-control" type="button" translate
                            ng-click="searchAddress(orderObj.receiverName,orderObj.purchaseOrgId)">搜索</button>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>手机号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverTel" class="form-control" ng-model="orderObj.receiverTel"
                            required yb-focus maxlength="20">

                        <div class="msg-block"
                            ng-show="orderForm.receiverTel.$dirty || (orderForm.receiverTel.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverTel.$error.required && !orderForm.receiverTel.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverAddress" class="form-control"
                            ng-model="orderObj.receiverAddress" required yb-focus maxlength="200">

                        <div class="msg-block"
                            ng-show="orderForm.receiverAddress.$dirty || (orderForm.receiverAddress.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.receiverAddress.$error.required && !orderForm.receiverAddress.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" class="form-control" maxlength="20"
                            ng-model="orderObj.receiverFax" yb-tel>

                        <div class="msg-block"
                            ng-show="orderForm.receiverFax.$dirty || (orderForm.receiverFax.$invalid && submitted)">
                            <div class="error-msg"
                                ng-show="orderForm.receiverFax.$error.tel && !orderForm.receiverFax.focused">
                                <div class="msg-triangle"></div>
                                <span translate>传真格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isJCH">
                    <label class="col-xs-4 control-label max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="country" class="form-control" ng-model="orderObj.country"
                            maxlength="200">
                    </div>
                </div>


                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div name="country" dealer-dictionary-selector ng-model="orderObj.country" required
                            sel-key="country" sel-code="orderObj.countryName"
                            data-model="orderObj.countryName">
                            <input type="text" class="form-control light-bg"
                                ng-model="orderObj.country" translate-attr-placeholder="请选择"
                                readonly yb-focus>

                            <div class="msg-block"
                                ng-if="orderForm.country.$dirty || (orderForm.country.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.country.$error.required && !orderForm.country.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>



                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isTJ">*</i><span translate>机型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div bj-select  source="TJJXList" source-label-key="name" ng-if="isTJ"
                            ng-model="orderObj.model" bind-key="code"></div>
                        <input type="text" name="model" class="form-control" ng-model="orderObj.model" maxlength="200" ng-if="!isTJ">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.remark"
                            maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>是否整改</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="1"
                            yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.isImprove" value="0"
                            yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>是否前移</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.forward" value="1"
                            yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio ng-model="orderObj.forward" value="0"
                            yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>订单金额</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.totalValue || 0}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>是否直投订单</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="1" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            yb-disabled="!!orderObj.billNo || orderObj.materialsList.length > 0"
                            ng-model="orderObj.isDirectCast" value="0" yb-radio-name="否">
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 control-label max-w-100"><span translate>直投达标金额</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.directLimit || 0}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.soldOrgName" select-obj="selectSold()"
                            clear-form="clearSold()" tips-name="供货商" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.soldOrgName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择供货商</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>币种</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.currency || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCH">
                    <label class="col-xs-4 control-label max-w-100"><span translate>订单类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select class="form-control" ng-model="orderObj.billTypeMode" >
                            <option value="" translate>请选择订单</option>
                            <option value="合同" translate>合同</option>
                            <option value="现金" translate>现金</option>
                            <option value="授信" translate>授信</option>
                        </select>
                    </div>
                </div>
                <!-- <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>零件类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select class="form-control" ng-model="orderObj.materialsType" name="materialsType" required ng-change="changeMaterialsType()">
                            <option value="" translate>请选择零件类型</option>
                            <option value="BYYS" translate>保养易损件</option>
                            <option value="WXQT" translate>维修件及其他</option>
                        </select>
                        <div class="msg-block"
                            ng-if="orderForm.materialsType.$dirty || (orderForm.materialsType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.materialsType.$error.required && !orderForm.materialsType.focused" translate>
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div> -->
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 control-label max-w-100"><span translate>零件类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select class="form-control" ng-model="orderObj.materialsType" ng-change="changeMaterialsType()">
                            <option value="" translate>请选择零件类型</option>
                            <option value="BYYS" translate>保养易损件</option>
                            <option value="WXQT" translate>维修件及其他</option>
                        </select>
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar flex">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()" translate>导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                    <button  class="btn btn-operate m-r-sm" translate ng-style="{'margin-top':isEN?'10px':'0px'}" ng-click="batchChosePriceScheme()">批量选择价格方案</button> 
                    
                    <div ng-if="isDL||isZHL" class="fl m-l" style="display:flex;align-items:end;">
                        <label class="fl">批量设置交货日期：</label>
                        <label class="fl">
                            <input type="text" class="form-control date-picker" placeholder="请选择"
                                datepicker-popup="{{'yyyy-MM-dd'}}" modal-size="small"
                                is-open="fahuoDateShow" close-text="关闭" readonly
                                ng-model="fahuoDateModel"
                                ng-change="jiaohuoDateChangeBatch(fahuoDateModel)"
                                ng-click="fahuoDateShow=!fahuoDateShow">
                        </label>
                    </div>
                </div>
            </div>

            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" sold-org-id="orderObj.soldOrgId"
                is-purchase="true" dealer-id="orderObj.purchaseOrgId"
                selected-list="orderObj.materialsList" replace-check="true"></div>
            <div class="main-area d-b-60"
                ng-style="(orderObj.isDirectCast === 1 || tabFlag.type === 1)?{top:'350px'}:{top:'335px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center" ng-if="tabFlag.type===0">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-if="itemCol.isShow != false">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="(trIndex, item) in orderObj.materialsList track by $index">
                                    <td width="40" class="text-center" ng-if="tabFlag.type===0">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate" ng-click="delMateriel(item, $index)" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index" width="{{itemCol.width}}" ng-if="itemCol.isShow != false">
                                        <div ng-if="!itemCol.needInput" class="spill-dots" ng-class="{'danger-color': itemCol.needWarn}" title="{{item[itemCol.dataField]}}">
                                            <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                            <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </div>
                                        <div ng-if="itemCol.needInput">
                                            <div ng-if="itemCol.dataField === 'machineModel'" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                       ng-change="checkMachineModel(item)" maxlength="60"
                                                       ng-class="{'error': item.machineModelEmptyErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.machineModelEmptyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg" translate>必填项，请填写</div>
                                                </div>
                                            </div>
                                            <div ng-if="itemCol.dataField == 'qty'" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    ng-change="countTotal(item)" yb-number-input max="9999999.999"
                                                    maxlength="9" disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': item.qtyErr || (item.qtyFormatErr)}"
                                                    >
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg" translate>申请数量不能为空和0</div>
                                                </div>
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyFormatErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg" translate>申请数量必须为{{item.minimumBuy}}的倍数</div>
                                                </div>
                                            </div>
                                            <div ng-if="itemCol.dataField == 'priceSchemeName'">
                                                <div yb-form-clear class="td-edit"
                                                    ng-if="showPricePlan == true"
                                                    ng-model="item[itemCol.dataField]"
                                                    select-obj="chosePriceScheme(item, trIndex)"
                                                    clear-form="clearPriceScheme(item)" tips-name="价格方案"
                                                    title="{{item[itemCol.dataField]}}"></div>    
                                                <div ng-if="showPricePlan == false">价格方案</div>                                         
                                            </div>
                                            <div ng-if="itemCol.dataField === 'remark'" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]">
                                            </div>
                                            <div ng-if="itemCol.inputType === 'time'" class="td-edit pos-r">
                                                <input type="text" class="form-control date-picker cursor-pointer"
                                                    ng-model="item.deliveryDate" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                    ng-change="jiaohuoDateChange()"
                                                    ng-click="switchListDatePicker(item)" at-right="true"
                                                    is-open="item.showDatePicker" close-text="关闭"
                                                    ng-class="{'error': item.dateErr && !item.deliveryDate}" readonly>
                                                <div class="pos-a tool-tips" ng-if="!!item.dateErr && !item.deliveryDate">
                                                    <i class="triangle"></i>
                                                    <div class="msg">交货日期不能为空</div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-disabled="orderObj.billStatus!=='0'&&tabFlag.name!=='新增采购申请'"
                    ng-click="saveData('save', orderForm.$valid,orderForm)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm" translate
                    ng-click="saveData('submit', orderForm.$valid)">提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>采购单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.billNo || '-'}}">
                        {{orderObj.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>采购合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.purchaseContractNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>接收单位</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.supplierOrgName || '-'}}">
                        {{orderObj.supplierOrgName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>申请日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.createDate|YbDate) || '-'}}">
                        {{(orderObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.deliveryDate|YbDate:"yyyy-MM-dd") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>客户名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.purchaseOrgName || '-'}}">
                        {{orderObj.purchaseOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>调度员</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dispatcherName || '-'}}">
                        {{orderObj.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>采购方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.typeDesc || '-'}}">
                        {{orderObj.purchaseTypeChildId ? orderObj.typeDesc + "-" + orderObj.purchaseTypeChildName :
                        orderObj.typeDesc}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.shippingMethod || '-'}}">
                        {{orderObj.sendTypeChildId ? orderObj.shippingMethod + "-" + orderObj.sendTypeChildName :
                        orderObj.shippingMethod;}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverName || '-'}}">
                        {{orderObj.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverTel || '-'}}">
                        {{orderObj.receiverTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverFax || '-'}}">
                        {{orderObj.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiverAddress || '-'}}">
                        {{orderObj.receiverAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>地址编码</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.addressCode || '-'}}">
                        {{orderObj.addressCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>审核人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.auditName || '-'}}">
                        {{orderObj.auditName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>审核状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.statusDesc || '-'}}">
                        {{orderObj.statusDesc || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>审核日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.auditDate|YbDate) || '-'}}">
                        {{(orderObj.auditDate|YbDate:"yyyy-MM-dd HH:mm:ss") || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.auditMessage || '-'}}">
                        {{orderObj.auditMessage || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>同步CRM</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.syncCrmFlag || '-'}}">
                        {{orderObj.syncCrmFlag | ProgressStatus:"sap"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.country|YbDate) || '-'}}">
                        {{orderObj.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>机型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.modelName|YbDate) || '-'}}" ng-if="isTJ">
                        {{orderObj.modelName || "-"}}
                    </div>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.model|YbDate) || '-'}}" ng-if="!isTJ">
                        {{orderObj.model || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!needHide">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.remark|YbDate) || '-'}}">
                        {{orderObj.remark || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>订单金额</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.remark|YbDate) || '-'}}">
                        {{orderObj.totalValue || 0}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>是否整改</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.isImprove|TrueOrFalse) || '-'}}">
                        {{(orderObj.isImprove|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>是否前移</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.forward|TrueOrFalse) || '-'}}">
                        {{(orderObj.forward|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>采购凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>是否直投订单</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(orderObj.isDirectCast|TrueOrFalse) || '-'}}">
                        {{(orderObj.isDirectCast|TrueOrFalse) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>直投达标金额</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.directLimit || '-'}}">
                        {{orderObj.directLimit || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>送达方</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.deliveryOrgName || '-'}}">
                        {{orderObj.deliveryOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.soldOrgName || '-'}}">
                        {{orderObj.soldOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.isDirectCast === 1">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>来源单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.directSourceOrder || '-'}}">
                        {{orderObj.directSourceOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>币种</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.currency || '-'}}">
                        {{orderObj.currency || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>订单类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.billTypeMode || '-'}}">
                        {{orderObj.billTypeMode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-150"><span translate>外部交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.sapRfd || '-'}}">
                        {{orderObj.sapRfd || "-"}}
                    </div>
                </div>
            </div>

            <div tabset type="sub-tab">
                <div tab heading="零件信息" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{'top':(orderObj.isDirectCast === 1)?(isEN?'420px':'320px'):(isEN?'390px':'298px')}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="{{auditMaterielTableConfig.scrollWidth}}">
                                    <thead>
                                        <tr>
                                            <th ng-repeat="itemCol in auditMaterielTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}" ng-if="!itemCol.hidden">
                                                <div yb-thead-operate ng-model="itemCol"
                                                    target-width="editMaterielConfig.scrollWidth"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                                <table class="table-fixed border-none" width="{{auditMaterielTableConfig.scrollWidth}}">
                                    <tbody>
                                        <tr ng-repeat="item in orderObj.materialsList track by $index">
                                            <td class="spill-dots" ng-if="!itemCol.hidden"
                                                ng-repeat="itemCol in auditMaterielTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                                <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                                <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0" translate>暂时没有数据</div>
                        </div>
                    </div>
                </div>

                <div tab heading="驳回记录" active="subTabFlag[1]">
                    <div class="main-area d-b-60" ng-style="{'top':(orderObj.isDirectCast === 1)?(isEN?'420px':'320px'):(isEN?'390px':'298px')}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="{{rejectRecordTableConfig.scrollWidth}}">
                                    <thead>
                                        <tr>
                                            <th ng-repeat="itemCol in rejectRecordTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}">
                                                <div yb-thead-operate ng-model="itemCol"
                                                    target-width="editMaterielConfig.scrollWidth"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="orderObj.logDOList.length > 0">
                                <table class="table-fixed border-none" width="{{rejectRecordTableConfig.scrollWidth}}">
                                    <tbody>
                                        <tr ng-repeat="item in orderObj.logDOList track by $index">
                                            <td class="spill-dots"
                                                ng-repeat="itemCol in rejectRecordTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                                {{item[itemCol.dataField]}}
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="orderObj.logDOList.length === 0" translate>暂时没有数据</div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>返回</button>
            </div>
        </div>
        <div tab heading="采购销售发货价格调整" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="importPriceBatch()">导入</button>
                </div>
            </div>
            <div class="main-area" style="top: 85px;bottom: 100px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none">
                            <thead>
                                <tr>
                                    <th width="60" translate>序号</th>
                                    <th width="300" translate>采购申请单号</th>
                                    <th width="250" translate>零件编号</th>
                                    <th width="300" translate>价格方案</th>
                                    <th width="150" translate>调整价格</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in importDataList track by $index">
                                    <td width="60">{{$index + 1}}</td>
                                    <td width="300" class="spill-dots" title="{{ item.purchaseNo }}">{{ item.purchaseNo }}</td>
                                    <td width="250" class="spill-dots" title="{{ item.materialsNo }}">{{ item.materialsNo }}</td>
                                    <td width="300" class="spill-dots" title="{{ item.priceScheme }}">{{ item.priceScheme }}</td>
                                    <td width="150" class="spill-dots" title="{{ item.price }}">{{ item.price }}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="importDataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" translate ng-click="handleAdjustPrice()">调整</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
    </div>
</div>